import request from '@/utils/request'

// 查询房屋地震灾害风险评估列表
export function listHouse(id) {
  return request({
    url: '/fxfzaqbz/data/getBigDisaster?id='+id,
    method: 'get',
  })
}

// 查询房屋地震灾害风险评估详细
export function getHouse(id) {
  return request({
    url: '/fxfzaqbz/data/getDisasterAssById?id=' + id,
    method: 'get'
  })
}

// 上传房屋地震灾害风险评估
export function uploadHouse(data) {
  return request({
    url: '/fxfzaqbz/data/saveDisasterAss',
    method: 'post',
    data: data
  })
}

// 上传房屋地震灾害风险评估图片
export function uploadHousePic(data) {
    return request({
      url: '/attachment/uploadFile',
      method: 'post',
      data: data
    })
  }

// 修改房屋地震灾害风险评估
export function updateHouse(data) {
  return request({
    url: '/fxfzaqbz/data/updateDisasterAss',
    method: 'post',
    data: data
  })
}

// 删除房屋地震灾害风险评估
export function delHouse(id) {
  return request({
    url: '/fxfzaqbz/data/deleteDisasterAss?id=' + id,
    method: 'post'
  })
}
